#include "BackGroundSky.h"
#include "ICC.h"
using namespace cocos2d;

BackGroundSky::BackGroundSky(void)
{
	init();
	CCSprite *sprite = CCSprite::create("background/sky.png");
	CCSize winsize = cocos2d::CCDirector::sharedDirector()->getWinSize();
	float fx = winsize.width/sprite->getContentSize().width;
	float fy = winsize.height/sprite->getContentSize().height;
	//sprite->setScaleX(fx);
	//sprite->setScaleY(fy);
	ICC *icc = ICC::getShareIcc();
	icc->setwholeScale(fx,fy);
	sprite->setPosition(ccp(winsize.width/2,winsize.height/2));
	this->addChild(sprite);
}


BackGroundSky::~BackGroundSky(void)
{
}
